<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="Content-Script-Type" content="text/javascript" />
		<meta http-equiv="Content-Style-Type" content="text/css" />
		<meta http-equiv="keywords" content="" />
		<meta http-equiv="description" content="" />
		<title>コントロールパネル</title>

		<link rel="stylesheet" href="./assets/styles/default.css" type="text/css" />
		<script src="assets/scripts/jquery-1.3.2.min.js" type="text/javascript"></script>
		<script src="assets/scripts/menu.js" type="text/javascript"></script>
		<script src="assets/scripts/table.js" type="text/javascript"></script>

		<link type="text/css" href="./assets/styles/ui-lightness/jquery-ui-1.7.2.custom.css" rel="stylesheet" />
		<script type="text/javascript" src="./assets/scripts/ui/ui.core.js"></script>
		<script type="text/javascript">
		$(function() {
		
			// メッセージのフェード
			$('.message').fadeIn("slow");

		});



		</script>
		
		<link rel="stylesheet" type="text/css" href="./assets/styles/tablesorter.css" />

		<script type="text/javascript" src="./assets/scripts/tablesorter.js"></script>
		<script type="text/javascript">
			var sorter = new TINY.table.sorter("sorter");
				sorter.head = "head";
				sorter.asc = "asc";
				sorter.desc = "desc";
				sorter.even = "evenrow";
				sorter.odd = "oddrow";
				sorter.evensel = "evenselected";
				sorter.oddsel = "oddselected";
				sorter.paginate = true;
				sorter.currentid = "currentpage";
				sorter.limitid = "pagelimit";
			$(function(){
					sorter.init("inquiry_result",0);
			});
		</script>

	</head>
	<body id="">
{{ php }} include( MENU_FILE ); {{ /php }}

		<div id="header" class="clearfix"><div class="wrapper">
			<h1><a href="./">コントロールパネル</a></h1>
			<form id="form_logout" action="logout.php" method="post"><p>{{ $login.staff_name }} <input type="submit" id="button_logout" value="ログアウト" /></p></form>
		</div></div>
		<div id="container"><div class="wrapper">

			<h2>スタッフ管理</h2>
			<ul class="submenu clearfix">
				<li>スタッフ一覧</li>
				<li><a href="staff_form.php">スタッフ登録</a></li>
			</ul>

			<h3>スタッフ一覧</h3>
			<p class="message">{{ $cnt }}件登録されています。</p>
			
			<table id="inquiry_result" class="sortable">
				<thead>
					<tr>
						<th><h3>ID</h3></th>
						<th><h3>ステータス</h3></th>
						<th><h3>スタッフ名</h3></th>
						<th><h3>登録日／更新日</h3></th>
						<th class="nosort"><h3>更新</h3></th>
					</tr>

				</thead>
				<tbody>
{{ foreach from=$stafflist key=k item=v }}
					<tr>
						<td><a href="staff_form.php?id={{ $v.staff_id }}">{{ $v.staff_id }}</a></td>
						<td>{{ if $v.status == '1' }}ログイン不可{{ else }}一般{{ /if }}</td>
						<td>{{ $v.staff_name }}</td>
						<td>{{ $v.r_date }}<br />{{ $v.u_date }}</td>
						<td><a href="staff_form.php?id={{ $v.staff_id }}">[更新]</a></td>
					</tr>
{{ /foreach }}
				</tbody>
			</table>

		</div></div>
		<address>Copyright (C) SHIFT Inc. / All rights reserved</address>

	</body>
</html>